body {
    --leftWidth: 220px;
    --iconWidth: 40px;
    --rowNum: 4;  /* 行数 */
    --colNum: 7;  /* 列数 */
}
/*布局*/
section{
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    padding: 5px;
}
.left-part{
    width: var(--leftWidth);
    height: 100%;
    margin-right: 2px;
    padding: 10px;
}
.right-part{
    width: calc(100% - var(--leftWidth));
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow: auto;
    align-content: flex-start;
}
.functional{
    position: absolute;
    top: 5px;
    right: 5px;
    width: 100px;
    padding: 5px;
    border: 1px solid var(--bdcolor);
    border-radius: 5px;
    background-color: rgba(18,37,79,.6);
    z-index: 99;
}
.functional select{
    width: 100%;
    height: 30px;
    background-color: var(--form);
    color: #ccc;
    margin-bottom: 5px;
    text-align: center;
    text-align-last: center;
    font-size: 12px;
}
.functional select option{
    background: var(--form1);
}
.layui-btn+.layui-btn{
    margin-left: 0;
}
/*左*/
.left-part, .right-part{
    border: 1px solid var(--bdcolor);
    border-radius: 5px;
    box-shadow: inset 0 0 20px var(--bdcolor);
}
.left-part .title-part{
    display: flex;
}
.title-part .area-text{
    font-size: 20px;
}
.left-part .title-part .icon-border{
    display: inline-block;
    width: var(--iconWidth);
    height: var(--iconWidth);
    line-height: var(--iconWidth);
    text-align: center;
    border-radius: 50%;
    border: 1px solid #fff;
}
.left-part .title-part .icon-border.shui{
    border: 1px solid var(--blue);
}
.left-part .title-part .icon-border.dian{
    border: 1px solid #dc9e00;
}
.left-part .title-part .icon-border i.icon-shui{
    font-size: calc(var(--iconWidth) - 8px);
    color: var(--blue);
}
.left-part .title-part .icon-border i.icon-dian{
    font-size: calc(var(--iconWidth) - 8px);
    color: #dc9e00;
}
.left-part .title-part div:last-child{
    width: calc(100% - var(--iconWidth));
    font-size: 18px;
}
.left-part .title-part div:last-child span{
    display: inline-block;
    width: 100%;
    text-align: center;
}
.count-part{
    margin-top: 10px;
    font-size: 18px;
}
.count-part > div{
    margin-bottom: 10px;
}
.count-part span{
    display: inline-block;
    width: 110px;
    margin-right: 5px;
    text-align-last: justify;
}
.count-part div em.areaName{
    display: inline-block;
    width: calc(100% - 70px);
    font-weight: bold;
    font-size: 18px;
    text-align: center;
}
em.unit{
    font-size: 12px;
    margin-left: 2px;
}
#gl-pie, #pie-2d{
    width: 100%;
    height: var(--leftWidth);
    margin-bottom: 10px;
}
.alert-list{
    height: calc(100% - 340px);
    color: var(--red);
}
.alert-list ul{
    height: calc(100% - 20px);
    overflow-y: auto;
}

/*右*/
.right-part .sigle-item{
    /* 7个/行  4个/列 */
    width: calc((100% - 3px * (7 * 2)) / 7);
    height: calc((100% - 3px * (4 * 2)) / 4);
    margin: 3px;
    padding: 3px;
    border: 1px solid var(--bdcolor);
    border-radius: 5px;
    background-color: rgba(18,37,79,.5);
}
.right-part .sigle-item h4{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
    font-weight: normal;
}
.right-part .sigle-item h4,
.right-part .sigle-item p {
    margin-bottom: 3px;
}
.right-part .sigle-item p span.quantity{
    display: inline-block;
    width: calc(100% - 90px);
    margin: 0 5px;
    text-align: center;
    border: 1px solid var(--bdcolor);
}
.sigle-item p span.unit{
    font-size: 12px;
}
.meter-img{
    width: 100%;
    height: calc(100% - 50px);
    text-align: center;
    position: relative;
}
.meter-img img{
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
}
/*电表*/
.meter-img[devtype='1'] span{
    display: inline-block;
    width: 100%;
    font-size: 16px;
    position: absolute;
    top: 38%;
    left: 0;
    z-index: 3;
}
/*水表*/
.meter-img[devtype='0'] span{
    display: inline-block;
    width: 100%;
    font-size: 16px;
    position: absolute;
    top: 30%;
    left: 0;
    z-index: 3;
    color: #333;
}

.layui-table{
    margin: 0;
}
.layui-layer-page .layui-layer-content{
    padding: 10px;
}

@media only screen and (max-width: 767px){
    /* 2个/行  5个/列 ，超出滚动*/
    .right-part .sigle-item{
        width: calc((100% - 3px * (2 * 2)) / 2);
        height: calc((100% - 3px * (5 * 2)) / 5);
    }
}
@media only screen and (min-width: 768px) and (max-width: 991px){
    /* 4个/行  6个/列 */
    .right-part .sigle-item{
        width: calc((100% - 3px * (4 * 2)) / 4);
        height: calc((100% - 3px * (6 * 2)) / 6);
    }
    .meter-img span{
        font-size: 12px;
        top: 36%;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1239px){
    /* 5个/行  5个/列 */
    .right-part .sigle-item{
        width: calc((100% - 3px * (5 * 2)) / 5);
        height: calc((100% - 3px * (5 * 2)) / 5);
    }
}
@media only screen and (min-width: 1240px) and (max-width: 1500px){
    /* 6个/行  4个/列 */
    .right-part .sigle-item{
        width: calc((100% - 3px * (6 * 2)) / 6);
        height: calc((100% - 3px * (4 * 2)) / 4);
    }
}
@media only screen and (min-width: 1240px) and (max-width: 1350px){
    .meter-img span{
        font-size: 14px;
        top: 37%;
    }
}
